package Day01;

import java.awt.*;
import java.util.Random;

public class client4 {
    public static void main(String[] args) throws AWTException {

        Random rd =new Random();  //产生随机数
        //0-999的随机数

        Robot rb = new Robot();
        for(;;){
            int x = rd.nextInt(1600);
            int y = rd.nextInt(1000);
            rb.mouseMove(x,y);  //移动
        }
    }
}
